
#include <common.h>
#include <page_manager.h>
#include <string.h>


static PPageAction g_ptPages=NULL;

void PageRegister(PPageAction ptPageAction)//注册单个页面
{
	ptPageAction->ptNext =g_ptPages;
	g_ptPages =ptPageAction;
}

PPageAction Page(char *name)//寻找对应页面
{
	PPageAction ptTmp=g_ptPages;
	while(ptTmp)
	{
		if(strcmp(name,ptTmp->name)==0)
			return ptTmp;
		ptTmp=ptTmp->ptNext;
	}
	return NULL;
}

void PagesRegister(void)//注册多个页面
{
	extern void MainPageRegister();
	MainPageRegister();
}
